package com.xyking.lambda.cart.impl;

import com.xyking.lambda.cart.Sku;
import com.xyking.lambda.cart.SkuCategoryEnum;
import com.xyking.lambda.cart.imp.SkuPredicate;

/**
 * 对Sku商品类型是否为图书类作为判断标准
 */
public class SkuBookCategoryPredicate implements SkuPredicate {
	@Override
	public boolean test(Sku sku) {
		return SkuCategoryEnum.BOOKS.equals(sku.getSkuCategory());
	}
}
